#ifndef __I2C_DRIVER_H__
#define __I2C_DRIVER_H__

#include "drv_config.h"
#define MAX_BUS_NUM 3
enum I2C_NUM {
    I2C1 = 0,
    I2C2,
    I2C3,
    I2C_NONE,
};



struct i2c_client
{
#ifdef ESP32
    uint8_t bus_num;
    i2c_config_t conf;
    size_t tx_buf_len;
    size_t rx_buf_len;
    uint8_t is_init;
#endif
    /* data */
};


#ifdef ESP32
int I2cMasterInit();
#endif


#endif